<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/3/7
  Time: 17:15
  To change this template use File | Settings | File Templates.
--%>
<%@include file="../../../base.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div class="cover" id="editPaperCardWindow">
    <div class="modal-dialog floatage">
        <div class="modal-content" id="floadtageCentent">
            <div class="text-center">
                <div class="modal-header">
                    <button type="button" class="close" onclick="edtiPaperCard.close()">x</button>
                    <h4 class="text-center text-primary">
                        卡片编辑
                    </h4>
                </div>
                <br>
                <form id="editPaperCardForm" class="form-horizontal text-center">
                    <input class="hidden" value="${paperCard.paperCardId}" name="paperCard.paperCardId">
                    <input class="hidden" value="${paperId}" name="paper.paperId">
                    <div class="form-group">
                        <label class="col-sm-2 control-label">卡名</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control" name="paperCard.name" placeholder=""
                                   value="${paperCard.name}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">卡片描述</label>
                        <div class="col-sm-8">
                                <textarea class="form-control" rows="3" name="paperCard.descr"
                                          placeholder="">${paperCard.descr}</textarea>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">状态</label>
                        <div class="col-sm-8">
                            <select class="form-control" name="paperCard.status">
                                <option value="0" <c:if test="${paperCard.status == 0}"> selected</c:if> >默认（未发布）
                                </option>
                                <option value="50" <c:if test="${paperCard.status == 50}"> selected</c:if> >发布</option>
                                <option value="99" <c:if test="${paperCard.status == 99}"> selected</c:if> >废除</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-2 control-label">操作</label>
                        <div class="col-sm-8">
                            <button type="button" class="btn btn-danger " onclick="edtiPaperCard.save()">
                                提交
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="${basePath}js/paperCard/editPaperCard.js"></script>